package net.easoftware.code.util;

import javax.faces.application.FacesMessage;
import javax.faces.context.FacesContext;

public class FacesUtil {

    public static String getRequestParam(String parameter) {
        return (String) FacesContext.getCurrentInstance().getExternalContext().getRequestParameterMap().get(parameter);
    }

    public static void addMessagesError(String error) {
        FacesContext.getCurrentInstance().addMessage(null, new FacesMessage(FacesMessage.SEVERITY_ERROR,
                error, error));
    }
}

/* Location:           C:\Users\EaDeveloper\Downloads\jd-gui-0.3.3.windows\
 * Qualified Name:     com.sisintegrados.gt.util.FacesUtil
 * JD-Core Version:    0.6.0
 */